package com.company.network.cominterceptor;

import android.util.Log;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Response;

public class ComRespInterceptor implements Interceptor {

    private final String TAG = "ComRespInterceptor";

    @Override
    public Response intercept(Chain chain) throws IOException {
        long requestTime = System.currentTimeMillis();
        Response response = chain.proceed(chain.request());

        Log.e(TAG, "requestTime:" + (System.currentTimeMillis() - requestTime));
        return response;
    }
}
